package com.achang.achangmall.search.vo;

import com.achang.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

//检索返回页面Bean
@Data
public class SearchResult {
    private List<SkuEsModel> products;//ES数据结构查询到的商品信息

    private Integer pageNum;//当前页码
    private Long total;//总记录数
    private Integer totalPage;//总页码
    private List<Integer> pageNavs;//导航页码

    private List<BrandVo> brandVos;//当前查询涉及到的品牌信息
    private List<AttrVo> attrVos;//当前查询涉及到的属性信息
    private List<CatalogVo> catalogVos;//当前查询涉及到的分类信息


    //=========以上返给页面的信息=============

    //品牌vo对象
    @Data
    public static class BrandVo{
        private Integer brandId;
        private String brandName;
        private String brandImg;
    }

    //分类vo对象
    @Data
    public static class CatalogVo{
        private Integer catalogId;
        private String catalogName;
    }

    //属性vo对象
    @Data
    public static class AttrVo{
        private Integer attrId;
        private String attrName;
        private List<String> attrValues;
    }
}
